/**
 * Created by chenyong on 2015/2/3.
 */

var mongoose = require('mongoose'),
    Schema = mongoose.Schema;

var PostSchema = new Schema({
    title       :   {type : String},
    content     :   {type : String},
    excerpt     :   {type : String},
    author      :   {type : String},
    date        :   {type : Date, default: Date.now},
    type        :   {type:String},
    status     :   {type:String,default:"inherit"}
});

module.exports = mongoose.model('Post', PostSchema);